package com.abu.apply.mapper;


import com.abu.apply.pojo.ApplyReport;
import com.abu.apply.vo.ApplyStatusCountVO;
import com.abu.apply.vo.ResultTypes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 申请记录表 Mapper 接口
 * </p>
 *
 * @author 阿布
 * @since 2021-02-05
 */
public interface ApplyReportMapper extends BaseMapper<ApplyReport> {

    List<ResultTypes> selectTypes();

    List<ApplyReport> selectPageByCondition(@Param("classroomName") String classroomName, @Param("beginTime") LocalDateTime reviewBeginTime, @Param("endTime") LocalDateTime reviewEndTime);

    Integer selectCountByCondition(@Param("classroomName") String classroomName, @Param("beginTime") LocalDateTime reviewBeginTime, @Param("endTime") LocalDateTime reviewEndTime);

    List<ApplyReport> selectPages(@Param("page") Long page, @Param("size") Long size, @Param("classroomName") String classroomName);


    Integer selectTotalSimple(@Param("classroomName") String classroomName);

    List<ApplyStatusCountVO> selectAllStatusCount(String managerId);

}
